﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpShare.Afp.Protocol {
    [Flags]
    public enum AfpAccessRightsBitmap : uint {
        OwnerExecute = 0x1,
        OwnerRead = 0x2,
        OwnerWrite = 0x4,
        OwnerReadWriteExecute = (OwnerRead | OwnerWrite | OwnerExecute),

        GroupExecute = 0x100,
        GroupRead = 0x200,
        GroupWrite = 0x400,
        GroupReadWriteExecute = (GroupRead | GroupWrite | GroupExecute),

        OtherExecute = 0x10000,
        OtherRead = 0x20000,
        OtherWrite = 0x40000,
        OtherReadWriteExecute = (OtherRead | OtherWrite | OtherExecute),

        UserExecute = 0x1000000,
        UserRead = 0x2000000,
        UserWrite = 0x4000000,
        UserReadWriteExecute = (UserRead | UserWrite | UserExecute),

        BlankAccess = 0x10000000,   // When the blank access privileges bit is set for a directory, its other access privilege bits are ignored, and the access privilege bits of the directory’s parent apply to the directory, including the parent’s group affiliation.
        UserIsOwner = 0x80000000   // Set to 1 if the current user is the owner of the file or directory. Also set to 1 if if the file or directory is not owned by a registered user.
    }

}
